package digitalmat.p.com.google.code;

public class Forme {
	private int		posix;
	private int		posiy;
	private int 	taillex;
	private int		tailley;
	private int[][]		tab;
	
	public Forme (){
		this(0,0,1,1);
	}
	
	public Forme(int posix, int posiy, int taillex, int tailley) {

		this.posix = posix;
		this.posiy = posiy;
		this.taillex = taillex;
		this.tailley = tailley;
		tab = new int[taillex][tailley];
		for (int i = 0; i < taillex; i++)
			for (int j = 0; j < tailley; j++)
				tab[i][j] = 1;
				
	}

	public int getPosix() {
		return posix;
	}
	public void setPosix(int posix) {
		this.posix = posix;
	}
	public int getPosiy() {
		return posiy;
	}
	public void setPosiy(int posiy) {
		this.posiy = posiy;
	}
	public int getTaillex() {
		return taillex;
	}
	public void setTaillex(int taillex) {
		this.taillex = taillex;
	}
	public int getTailley() {
		return tailley;
	}

	public void setTailley(int tailley) {
		this.tailley = tailley;
	}

	public int[][] getTab() {
		return tab;
	}
	public void setTab(int[][] tab) {
		this.tab = tab;
	}
	@Override
	public String toString() {
		return "Forme [posix=" + posix + ", posiy=" + posiy + ", taillex="
				+ taillex + ", tailley=" + tailley + "]";
	}

	
}
